package com.neoharvest.smartagri.proxy.impl;

import com.neoharvest.smartagri.model.AgriculturalMachine;
import com.neoharvest.smartagri.model.impl.HarvesterMachine;
import com.neoharvest.smartagri.proxy.MachineAccessProxy;

public class SmartMachineProxy implements MachineAccessProxy {
    private AgriculturalMachine realMachine;

    @Override
    public AgriculturalMachine getMachineAccess() {
        if (realMachine == null) {
            realMachine = new HarvesterMachine();
        }
        return realMachine;
    }
}